import axios from '@/api/axios'

// 商品列表
export function listApi(params) {
  return axios.get('/manage/petGoods/list', { params })
}


// 创建商品
export function createApi(params) {
  return axios.post('/manage/petGoods/add', params)
}

// 商品上下架
export function upOrdownApi(params) {
    return axios.put('/manage/petGoods/upOrdown', params)
}

// 商品编辑
export function editApi(params) {
    return axios.put('/manage/petGoods/edit', params)
}

// 删除商品类型
export function deleteApi(params) {
    return axios.delete('/manage/petGoods/delete/'+params)
}

// 获取商品详情
export function detailApi(params) {
    return axios.get('/manage/petGoods/adminDetail/'+params)
}

// 获取商品详情
export function typeListApi(params) {
  return axios.get('/manage/petGoods/getGoodsTypeList')
}